﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Lamex.Interface;
using Lamex.Library;
using Lamex.Library.CommonClass;

namespace Lamex.SPANELManager.UI
{
    public partial class MainPANELSystemManager : frmModuleBase
    {
        public MainPANELSystemManager()
        {
            InitializeComponent();
            menuStrip1.Text = ModuleNames.SystemManage; //与AssemblyModuleEntry.ModuleName定义相同
        }
        public override MenuStrip GetModuleMenu()
        {
            return this.menuStrip1;
        }
        /// <summary>
        /// 项目申请
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void toolStripitemPANELProject_Click(object sender, EventArgs e)
        {

            //MdiTools.OpenIE(@"M:\MES\ShareFolder\李钟哇\3TEC_New_Version\bin\3Tec MES.exe;M:\MES\ShareFolder\李钟哇\3TEC_New_Version\bin;M:\MES\ShareFolder\李钟哇\3TEC_New_Version\bin");
            //MdiTools.OpenIE(@"M:\MES\ShareFolder\李钟哇\3TEC_New_Version\bin\3Tec MES.exe");
            //MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmWebForm(@"http://172.23.134.36:8090/Login.aspx", "项目申请"), sender as ToolStripMenuItem);

            MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmExeForm(@"C:\Users\JackLi\Desktop\MES屏风\JavaTest\TestFrame.exe", "TestFrame"), sender as ToolStripMenuItem);
            //ExetoWinform frm = new ExetoWinform();

            //MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmTestWinform), sender as ToolStripMenuItem);
        }

        private void toolMenuPanelAssmeblyQuery_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(FrmPANELAssemblyQuery), sender as ToolStripMenuItem); 
        }
    }
}
